<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Eigen: SVDBase.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="eigendoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Eigen_Silly_Professor_64x64.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://eigen.tuxfamily.org">Eigen</a>
   &#160;<span id="projectnumber">3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('SVDBase_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">SVDBase.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// This file is part of Eigen, a lightweight C++ template library</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// for linear algebra.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2009-2010 Benoit Jacob &lt;jacob.benoit.1@gmail.com&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// Copyright (C) 2014 Gael Guennebaud &lt;gael.guennebaud@inria.fr&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// Copyright (C) 2013 Gauthier Brun &lt;brun.gauthier@gmail.com&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// Copyright (C) 2013 Nicolas Carre &lt;nicolas.carre@ensimag.fr&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Copyright (C) 2013 Jean Ceccato &lt;jean.ceccato@ensimag.fr&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// Copyright (C) 2013 Pierre Zoppitelli &lt;pierre.zoppitelli@ensimag.fr&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// This Source Code Form is subject to the terms of the Mozilla</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// Public License v. 2.0. If a copy of the MPL was not distributed</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef EIGEN_SVDBASE_H</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define EIGEN_SVDBASE_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;./InternalHeaderCheck.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceEigen.html">Eigen</a> {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span>internal {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">enum</span> OptionsMasks {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  QRPreconditionerBits = <a class="code" href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56ea2e95bc818f975b19def01e93d240dece">NoQRPreconditioner</a> | <a class="code" href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56ea9c660eb3336bf8c77ce9d081ca07cbdd">HouseholderQRPreconditioner</a> | <a class="code" href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56eabd2e2f4875c5b4b6e602a433d90c4e5e">ColPivHouseholderQRPreconditioner</a> |</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;                         <a class="code" href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56eabd745dcaff7019c5f918c68809e5ea50">FullPivHouseholderQRPreconditioner</a>,</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  ComputationOptionsBits = <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9aa7fb4e98834788d0b1b0f2b8467d2527">ComputeThinU</a> | <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a9fa9302d510cee20c26311154937e23f">ComputeFullU</a> | <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a540036417bfecf2e791a70948c227f47">ComputeThinV</a> | <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a36581f7c662f7def31efd500c284f930">ComputeFullV</a></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;};</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;constexpr <span class="keywordtype">int</span> get_qr_preconditioner(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> options &amp; QRPreconditionerBits; }</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;constexpr <span class="keywordtype">int</span> get_computation_options(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> options &amp; ComputationOptionsBits; }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;constexpr <span class="keywordtype">bool</span> should_svd_compute_thin_u(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> (options &amp; <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9aa7fb4e98834788d0b1b0f2b8467d2527">ComputeThinU</a>) != 0; }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;constexpr <span class="keywordtype">bool</span> should_svd_compute_full_u(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> (options &amp; <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a9fa9302d510cee20c26311154937e23f">ComputeFullU</a>) != 0; }</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;constexpr <span class="keywordtype">bool</span> should_svd_compute_thin_v(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> (options &amp; <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a540036417bfecf2e791a70948c227f47">ComputeThinV</a>) != 0; }</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;constexpr <span class="keywordtype">bool</span> should_svd_compute_full_v(<span class="keywordtype">int</span> options) { <span class="keywordflow">return</span> (options &amp; <a class="code" href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a36581f7c662f7def31efd500c284f930">ComputeFullV</a>) != 0; }</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatrixType, <span class="keywordtype">int</span> Options&gt;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keywordtype">void</span> check_svd_options_assertions(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> computationOptions, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  EIGEN_STATIC_ASSERT((Options &amp; ComputationOptionsBits) == 0,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                      <span class="stringliteral">&quot;SVDBase: Cannot request U or V using both static and runtime options, even if they match. &quot;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                      <span class="stringliteral">&quot;Requesting unitaries at runtime is DEPRECATED: &quot;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                      <span class="stringliteral">&quot;Prefer requesting unitaries statically, using the Options template parameter.&quot;</span>);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  eigen_assert(!(should_svd_compute_thin_u(computationOptions) &amp;&amp; cols &lt; rows &amp;&amp; MatrixType::RowsAtCompileTime != <a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a>) &amp;&amp;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;               !(should_svd_compute_thin_v(computationOptions) &amp;&amp; rows &lt; cols &amp;&amp; MatrixType::ColsAtCompileTime != <a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a>) &amp;&amp;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;               <span class="stringliteral">&quot;SVDBase: If thin U is requested at runtime, your matrix must have more rows than columns or a dynamic number of rows.&quot;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;               <span class="stringliteral">&quot;Similarly, if thin V is requested at runtime, you matrix must have more columns than rows or a dynamic number of columns.&quot;</span>);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  (void)computationOptions;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  (void)rows;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  (void)cols;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt; <span class="keyword">struct </span>traits&lt;SVDBase&lt;Derived&gt; &gt;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; : traits&lt;Derived&gt;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keyword">typedef</span> MatrixXpr XprKind;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keyword">typedef</span> SolverStorage StorageKind;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keyword">typedef</span> <span class="keywordtype">int</span> StorageIndex;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <span class="keyword">enum</span> { Flags = 0 };</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;};</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> MatrixType, <span class="keywordtype">int</span> Options_&gt;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">struct </span>svd_traits : traits&lt;MatrixType&gt; {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">int</span> Options = Options_;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeFullU = internal::should_svd_compute_full_u(Options);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeThinU = internal::should_svd_compute_thin_u(Options);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeFullV = internal::should_svd_compute_full_v(Options);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeThinV = internal::should_svd_compute_thin_v(Options);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    DiagSizeAtCompileTime =</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        internal::min_size_prefer_dynamic(MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime),</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    MaxDiagSizeAtCompileTime =</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        internal::min_size_prefer_dynamic(MatrixType::MaxRowsAtCompileTime, MatrixType::MaxColsAtCompileTime),</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    MatrixUColsAtCompileTime = ShouldComputeThinU ? DiagSizeAtCompileTime</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                                                  : MatrixType::RowsAtCompileTime,</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    MatrixVColsAtCompileTime = ShouldComputeThinV ? DiagSizeAtCompileTime</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                                                  : MatrixType::ColsAtCompileTime,</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    MatrixUMaxColsAtCompileTime = ShouldComputeThinU ? MaxDiagSizeAtCompileTime</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                                                     : MatrixType::MaxRowsAtCompileTime,</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    MatrixVMaxColsAtCompileTime = ShouldComputeThinV ? MaxDiagSizeAtCompileTime</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                                                     : MatrixType::MaxColsAtCompileTime</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  };</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;};</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;}</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html">  118</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt; <span class="keyword">class </span><a class="code" href="classEigen_1_1SVDBase.html">SVDBase</a></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; : <span class="keyword">public</span> <a class="code" href="classEigen_1_1SolverBase.html">SolverBase</a>&lt;SVDBase&lt;Derived&gt; &gt;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;{</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keyword">public</span>: </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;   </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived_&gt;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  <span class="keyword">friend</span> <span class="keyword">struct </span>internal::solve_assertion;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">typename</span> internal::traits&lt;Derived&gt;::MatrixType MatrixType;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">typename</span> MatrixType::Scalar Scalar;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structEigen_1_1NumTraits.html">NumTraits&lt;typename MatrixType::Scalar&gt;::Real</a> RealScalar;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  <span class="keyword">typedef</span> <span class="keyword">typename</span> Eigen::internal::traits&lt;SVDBase&gt;::StorageIndex StorageIndex;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">  130</a></span>&#160;  <span class="keyword">typedef</span> <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Eigen::Index</a> <a class="code" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Index</a>; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeFullU = internal::traits&lt;Derived&gt;::ShouldComputeFullU;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeThinU = internal::traits&lt;Derived&gt;::ShouldComputeThinU;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeFullV = internal::traits&lt;Derived&gt;::ShouldComputeFullV;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="keyword">static</span> constexpr <span class="keywordtype">bool</span> ShouldComputeThinV = internal::traits&lt;Derived&gt;::ShouldComputeThinV;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    RowsAtCompileTime = MatrixType::RowsAtCompileTime,</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    ColsAtCompileTime = MatrixType::ColsAtCompileTime,</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    DiagSizeAtCompileTime = internal::min_size_prefer_dynamic(RowsAtCompileTime, ColsAtCompileTime),</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime,</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime,</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    MaxDiagSizeAtCompileTime = internal::min_size_prefer_fixed(MaxRowsAtCompileTime, MaxColsAtCompileTime),</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    MatrixOptions = MatrixType::Options,</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    MatrixUColsAtCompileTime = internal::traits&lt;Derived&gt;::MatrixUColsAtCompileTime,</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    MatrixVColsAtCompileTime = internal::traits&lt;Derived&gt;::MatrixVColsAtCompileTime,</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    MatrixUMaxColsAtCompileTime = internal::traits&lt;Derived&gt;::MatrixUMaxColsAtCompileTime,</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    MatrixVMaxColsAtCompileTime = internal::traits&lt;Derived&gt;::MatrixVMaxColsAtCompileTime</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  };</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  EIGEN_STATIC_ASSERT(!(ShouldComputeFullU &amp;&amp; ShouldComputeThinU), <span class="stringliteral">&quot;SVDBase: Cannot request both full and thin U&quot;</span>)</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  EIGEN_STATIC_ASSERT(!(ShouldComputeFullV &amp;&amp; ShouldComputeThinV), &quot;<a class="code" href="classEigen_1_1SVDBase.html">SVDBase</a>: Cannot request both full and thin V&quot;)</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  typedef</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;      typename internal::make_proper_matrix_type&lt;Scalar, RowsAtCompileTime, MatrixUColsAtCompileTime, MatrixOptions,</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                                                 MaxRowsAtCompileTime, MatrixUMaxColsAtCompileTime&gt;::type MatrixUType;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  typedef</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;      typename internal::make_proper_matrix_type&lt;Scalar, ColsAtCompileTime, MatrixVColsAtCompileTime, MatrixOptions,</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                                                 MaxColsAtCompileTime, MatrixVMaxColsAtCompileTime&gt;::type MatrixVType;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  typedef typename internal::plain_diag_type&lt;MatrixType, RealScalar&gt;::type SingularValuesType;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  Derived&amp; derived() { <span class="keywordflow">return</span> *<span class="keyword">static_cast&lt;</span>Derived*<span class="keyword">&gt;</span>(<span class="keyword">this</span>); }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <span class="keyword">const</span> Derived&amp; derived()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *<span class="keyword">static_cast&lt;</span><span class="keyword">const </span>Derived*<span class="keyword">&gt;</span>(<span class="keyword">this</span>); }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#afc7fe1546b0f6e1801b86f22f5664cb8">  175</a></span>&#160;  <span class="keyword">const</span> <a class="code" href="classEigen_1_1Matrix.html">MatrixUType</a>&amp; <a class="code" href="classEigen_1_1SVDBase.html#afc7fe1546b0f6e1801b86f22f5664cb8">matrixU</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    _check_compute_assertions();</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    eigen_assert(<a class="code" href="classEigen_1_1SVDBase.html#a705a7c2709e1624ccc19aa748a78d473">computeU</a>() &amp;&amp; <span class="stringliteral">&quot;This SVD decomposition didn&#39;t compute U. Did you ask for it?&quot;</span>);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keywordflow">return</span> m_matrixU;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a245a453b5e7347f737295c23133238c4">  191</a></span>&#160;  <span class="keyword">const</span> <a class="code" href="classEigen_1_1Matrix.html">MatrixVType</a>&amp; <a class="code" href="classEigen_1_1SVDBase.html#a245a453b5e7347f737295c23133238c4">matrixV</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    _check_compute_assertions();</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    eigen_assert(<a class="code" href="classEigen_1_1SVDBase.html#a5f12efcb791eb007d4a4890ac5255ac4">computeV</a>() &amp;&amp; <span class="stringliteral">&quot;This SVD decomposition didn&#39;t compute V. Did you ask for it?&quot;</span>);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">return</span> m_matrixV;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a4e7bac123570c348f7ed6be909e1e474">  203</a></span>&#160;  <span class="keyword">const</span> SingularValuesType&amp; <a class="code" href="classEigen_1_1SVDBase.html#a4e7bac123570c348f7ed6be909e1e474">singularValues</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    _check_compute_assertions();</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keywordflow">return</span> m_singularValues;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  }</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#afe8a555f38393a319a71ec0f0331c9ef">  210</a></span>&#160;  <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> <a class="code" href="classEigen_1_1SVDBase.html#afe8a555f38393a319a71ec0f0331c9ef">nonzeroSingularValues</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    _check_compute_assertions();</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordflow">return</span> m_nonzeroSingularValues;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  </div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a30b89e24f42f1692079eea31b361d26a">  222</a></span>&#160;  <span class="keyword">inline</span> <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> <a class="code" href="classEigen_1_1SVDBase.html#a30b89e24f42f1692079eea31b361d26a">rank</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keyword">using</span> std::abs;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    _check_compute_assertions();</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordflow">if</span>(m_singularValues.size()==0) <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    RealScalar premultiplied_threshold = numext::maxi&lt;RealScalar&gt;(m_singularValues.coeff(0) * <a class="code" href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">threshold</a>(), (std::numeric_limits&lt;RealScalar&gt;::min)());</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> i = m_nonzeroSingularValues-1;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">while</span>(i&gt;=0 &amp;&amp; m_singularValues.coeff(i) &lt; premultiplied_threshold) --i;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> i+1;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;  }</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  </div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a1c95d05398fc15e410a28560ef70a5a6">  247</a></span>&#160;  Derived&amp; <a class="code" href="classEigen_1_1SVDBase.html#a1c95d05398fc15e410a28560ef70a5a6">setThreshold</a>(<span class="keyword">const</span> RealScalar&amp; <a class="code" href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">threshold</a>)</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;  {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    m_usePrescribedThreshold = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    m_prescribedThreshold = <a class="code" href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">threshold</a>;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keywordflow">return</span> derived();</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a27586b69dbfb63f714d1d45fd6304f97">  262</a></span>&#160;  Derived&amp; <a class="code" href="classEigen_1_1SVDBase.html#a27586b69dbfb63f714d1d45fd6304f97">setThreshold</a>(Default_t)</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  {</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    m_usePrescribedThreshold = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="keywordflow">return</span> derived();</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;  }</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; </div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">  272</a></span>&#160;  RealScalar <a class="code" href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">threshold</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    eigen_assert(m_isInitialized || m_usePrescribedThreshold);</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="comment">// this temporary is needed to workaround a MSVC issue</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Index</a> diagSize = (std::max&lt;Index&gt;)(1,m_diagSize);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">return</span> m_usePrescribedThreshold ? m_prescribedThreshold</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                                    : RealScalar(diagSize)*<a class="code" href="structEigen_1_1NumTraits.html">NumTraits&lt;Scalar&gt;::epsilon</a>();</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;  }</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a705a7c2709e1624ccc19aa748a78d473">  282</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1SVDBase.html#a705a7c2709e1624ccc19aa748a78d473">computeU</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_computeFullU || m_computeThinU; }</div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a5f12efcb791eb007d4a4890ac5255ac4">  284</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classEigen_1_1SVDBase.html#a5f12efcb791eb007d4a4890ac5255ac4">computeV</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_computeFullV || m_computeThinV; }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;  <span class="keyword">inline</span> <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_rows; }</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;  <span class="keyword">inline</span> <a class="code" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Index</a> cols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cols; }</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;  </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="preprocessor">  #ifdef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Rhs&gt;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> Solve&lt;Derived, Rhs&gt;</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#ab28499936c0764fe5b56b9f4de701e26">  301</a></span>&#160;  <a class="code" href="classEigen_1_1SVDBase.html#ab28499936c0764fe5b56b9f4de701e26">solve</a>(<span class="keyword">const</span> <a class="code" href="classEigen_1_1MatrixBase.html">MatrixBase&lt;Rhs&gt;</a>&amp; b) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="preprocessor">  #endif</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  EIGEN_DEVICE_FUNC</div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#a06c311bc452dc1ca5abce2f640e15292">  310</a></span>&#160;  <a class="code" href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">ComputationInfo</a> <a class="code" href="classEigen_1_1SVDBase.html#a06c311bc452dc1ca5abce2f640e15292">info</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    eigen_assert(m_isInitialized &amp;&amp; <span class="stringliteral">&quot;SVD is not initialized.&quot;</span>);</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="keywordflow">return</span> m_info;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  }</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="preprocessor">  #ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> RhsType, <span class="keyword">typename</span> DstType&gt;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;  <span class="keywordtype">void</span> _solve_impl(<span class="keyword">const</span> RhsType &amp;rhs, DstType &amp;dst) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160; </div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> Conjugate, <span class="keyword">typename</span> RhsType, <span class="keyword">typename</span> DstType&gt;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;  <span class="keywordtype">void</span> _solve_impl_transposed(<span class="keyword">const</span> RhsType &amp;rhs, DstType &amp;dst) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="preprocessor">  #endif</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; </div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160; </div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;  EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar)</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160; </div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;  <span class="keywordtype">void</span> _check_compute_assertions()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    eigen_assert(m_isInitialized &amp;&amp; <span class="stringliteral">&quot;SVD is not initialized.&quot;</span>);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;  }</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;  <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> Transpose_, <span class="keyword">typename</span> Rhs&gt;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  <span class="keywordtype">void</span> _check_solve_assertion(<span class="keyword">const</span> Rhs&amp; b)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;      EIGEN_ONLY_USED_FOR_DEBUG(b);</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;      _check_compute_assertions();</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;      eigen_assert(<a class="code" href="classEigen_1_1SVDBase.html#a705a7c2709e1624ccc19aa748a78d473">computeU</a>() &amp;&amp; <a class="code" href="classEigen_1_1SVDBase.html#a5f12efcb791eb007d4a4890ac5255ac4">computeV</a>() &amp;&amp; <span class="stringliteral">&quot;SVDBase::solve(): Both unitaries U and V are required to be computed (thin unitaries suffice).&quot;</span>);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;      eigen_assert((Transpose_?cols():rows())==b.rows() &amp;&amp; <span class="stringliteral">&quot;SVDBase::solve(): invalid number of rows of the right hand side matrix b&quot;</span>);</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;  }</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; </div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;  <span class="comment">// return true if already allocated</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;  <span class="keywordtype">bool</span> allocate(<a class="code" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Index</a> rows, <a class="code" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Index</a> cols, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> computationOptions);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;  MatrixUType m_matrixU;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;  MatrixVType m_matrixV;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;  SingularValuesType m_singularValues;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;  <a class="code" href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">ComputationInfo</a> m_info;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;  <span class="keywordtype">bool</span> m_isInitialized, m_isAllocated, m_usePrescribedThreshold;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;  <span class="keywordtype">bool</span> m_computeFullU, m_computeThinU;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;  <span class="keywordtype">bool</span> m_computeFullV, m_computeThinV;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_computationOptions;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;  <a class="code" href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Index</a> m_nonzeroSingularValues, m_rows, m_cols, m_diagSize;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;  RealScalar m_prescribedThreshold;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00358"></a><span class="lineno"><a class="line" href="classEigen_1_1SVDBase.html#abed06fc6f4b743e1f76a7b317539da87">  358</a></span>&#160;  <a class="code" href="classEigen_1_1SVDBase.html#abed06fc6f4b743e1f76a7b317539da87">SVDBase</a>()</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;      : m_info(<a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a>),</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        m_isInitialized(false),</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        m_isAllocated(false),</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        m_usePrescribedThreshold(false),</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        m_computeFullU(false),</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        m_computeThinU(false),</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        m_computeFullV(false),</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        m_computeThinV(false),</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        m_computationOptions(0),</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        m_rows(-1),</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        m_cols(-1),</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        m_diagSize(0) {}</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;};</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; </div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="preprocessor">#ifndef EIGEN_PARSED_BY_DOXYGEN</span></div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> RhsType, <span class="keyword">typename</span> DstType&gt;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="keywordtype">void</span> SVDBase&lt;Derived&gt;::_solve_impl(<span class="keyword">const</span> RhsType &amp;rhs, DstType &amp;dst)<span class="keyword"> const</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;  <span class="comment">// A = U S V^*</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;  <span class="comment">// So A^{-1} = V S^{-1} U^*</span></div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; </div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;  Matrix&lt;typename RhsType::Scalar, Dynamic, RhsType::ColsAtCompileTime, 0, MatrixType::MaxRowsAtCompileTime, RhsType::MaxColsAtCompileTime&gt; tmp;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;  <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> l_rank = rank();</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;  tmp.noalias() =  m_matrixU.leftCols(l_rank).adjoint() * rhs;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;  tmp = m_singularValues.head(l_rank).asDiagonal().inverse() * tmp;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;  dst = m_matrixV.leftCols(l_rank) * tmp;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;}</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160; </div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> Conjugate, <span class="keyword">typename</span> RhsType, <span class="keyword">typename</span> DstType&gt;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="keywordtype">void</span> SVDBase&lt;Derived&gt;::_solve_impl_transposed(<span class="keyword">const</span> RhsType &amp;rhs, DstType &amp;dst)<span class="keyword"> const</span></div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;  <span class="comment">// A = U S V^*</span></div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;  <span class="comment">// So  A^{-*} = U S^{-1} V^*</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;  <span class="comment">// And A^{-T} = U_conj S^{-1} V^T</span></div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;  Matrix&lt;typename RhsType::Scalar, Dynamic, RhsType::ColsAtCompileTime, 0, MatrixType::MaxRowsAtCompileTime, RhsType::MaxColsAtCompileTime&gt; tmp;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;  <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> l_rank = rank();</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;  tmp.noalias() =  m_matrixV.leftCols(l_rank).transpose().template conjugateIf&lt;Conjugate&gt;() * rhs;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  tmp = m_singularValues.head(l_rank).asDiagonal().inverse() * tmp;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;  dst = m_matrixU.template conjugateIf&lt;!Conjugate&gt;().leftCols(l_rank) * tmp;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;}</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Derived&gt;</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;<span class="keywordtype">bool</span> SVDBase&lt;Derived&gt;::allocate(<a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> rows, <a class="code" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> cols, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> computationOptions) {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;  eigen_assert(rows &gt;= 0 &amp;&amp; cols &gt;= 0);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160; </div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;  <span class="keywordflow">if</span> (m_isAllocated &amp;&amp;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;      rows == m_rows &amp;&amp;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;      cols == m_cols &amp;&amp;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;      computationOptions == m_computationOptions)</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;  {</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  }</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160; </div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;  m_rows = rows;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;  m_cols = cols;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;  m_info = <a class="code" href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Success</a>;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;  m_isInitialized = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;  m_isAllocated = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  m_computationOptions = computationOptions;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;  m_computeFullU = ShouldComputeFullU || internal::should_svd_compute_full_u(computationOptions);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  m_computeThinU = ShouldComputeThinU || internal::should_svd_compute_thin_u(computationOptions);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;  m_computeFullV = ShouldComputeFullV || internal::should_svd_compute_full_v(computationOptions);</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;  m_computeThinV = ShouldComputeThinV || internal::should_svd_compute_thin_v(computationOptions);</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;  eigen_assert(!(m_computeFullU &amp;&amp; m_computeThinU) &amp;&amp; <span class="stringliteral">&quot;SVDBase: you can&#39;t ask for both full and thin U&quot;</span>);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;  eigen_assert(!(m_computeFullV &amp;&amp; m_computeThinV) &amp;&amp; <span class="stringliteral">&quot;SVDBase: you can&#39;t ask for both full and thin V&quot;</span>);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;  m_diagSize = (std::min)(m_rows, m_cols);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;  m_singularValues.resize(m_diagSize);</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;  <span class="keywordflow">if</span>(RowsAtCompileTime==<a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a>)</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    m_matrixU.resize(m_rows, m_computeFullU ? m_rows : m_computeThinU ? m_diagSize : 0);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;  <span class="keywordflow">if</span>(ColsAtCompileTime==<a class="code" href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Dynamic</a>)</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    m_matrixV.resize(m_cols, m_computeFullV ? m_cols : m_computeThinV ? m_diagSize : 0);</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160; </div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;}</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160; </div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;}<span class="comment">// end namespace</span></div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160; </div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// EIGEN_SVDBASE_H</span></div>
<div class="ttc" id="aclassEigen_1_1MatrixBase_html"><div class="ttname"><a href="classEigen_1_1MatrixBase.html">Eigen::MatrixBase</a></div><div class="ttdoc">Base class for all dense matrices, vectors, and expressions.</div><div class="ttdef"><b>Definition:</b> MatrixBase.h:52</div></div>
<div class="ttc" id="aclassEigen_1_1Matrix_html"><div class="ttname"><a href="classEigen_1_1Matrix.html">Eigen::Matrix</a></div><div class="ttdoc">The matrix class, also used for vectors and row-vectors.</div><div class="ttdef"><b>Definition:</b> Matrix.h:182</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html"><div class="ttname"><a href="classEigen_1_1SVDBase.html">Eigen::SVDBase</a></div><div class="ttdoc">Base class of SVD algorithms.</div><div class="ttdef"><b>Definition:</b> SVDBase.h:120</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a06c311bc452dc1ca5abce2f640e15292"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a06c311bc452dc1ca5abce2f640e15292">Eigen::SVDBase::info</a></div><div class="ttdeci">ComputationInfo info() const</div><div class="ttdoc">Reports whether previous computation was successful.</div><div class="ttdef"><b>Definition:</b> SVDBase.h:310</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a1c95d05398fc15e410a28560ef70a5a6"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a1c95d05398fc15e410a28560ef70a5a6">Eigen::SVDBase::setThreshold</a></div><div class="ttdeci">Derived &amp; setThreshold(const RealScalar &amp;threshold)</div><div class="ttdef"><b>Definition:</b> SVDBase.h:247</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a245a453b5e7347f737295c23133238c4"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a245a453b5e7347f737295c23133238c4">Eigen::SVDBase::matrixV</a></div><div class="ttdeci">const MatrixVType &amp; matrixV() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:191</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a27586b69dbfb63f714d1d45fd6304f97"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a27586b69dbfb63f714d1d45fd6304f97">Eigen::SVDBase::setThreshold</a></div><div class="ttdeci">Derived &amp; setThreshold(Default_t)</div><div class="ttdef"><b>Definition:</b> SVDBase.h:262</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a30b89e24f42f1692079eea31b361d26a"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a30b89e24f42f1692079eea31b361d26a">Eigen::SVDBase::rank</a></div><div class="ttdeci">Index rank() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:222</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a4e7bac123570c348f7ed6be909e1e474"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a4e7bac123570c348f7ed6be909e1e474">Eigen::SVDBase::singularValues</a></div><div class="ttdeci">const SingularValuesType &amp; singularValues() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:203</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a5f12efcb791eb007d4a4890ac5255ac4"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a5f12efcb791eb007d4a4890ac5255ac4">Eigen::SVDBase::computeV</a></div><div class="ttdeci">bool computeV() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:284</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a6229a37997eca1072b52cca5ee7a2bec"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a6229a37997eca1072b52cca5ee7a2bec">Eigen::SVDBase::Index</a></div><div class="ttdeci">Eigen::Index Index</div><div class="ttdef"><b>Definition:</b> SVDBase.h:130</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a705a7c2709e1624ccc19aa748a78d473"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a705a7c2709e1624ccc19aa748a78d473">Eigen::SVDBase::computeU</a></div><div class="ttdeci">bool computeU() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:282</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_a98b2ee98690358951807353812a05c69"><div class="ttname"><a href="classEigen_1_1SVDBase.html#a98b2ee98690358951807353812a05c69">Eigen::SVDBase::threshold</a></div><div class="ttdeci">RealScalar threshold() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:272</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_ab28499936c0764fe5b56b9f4de701e26"><div class="ttname"><a href="classEigen_1_1SVDBase.html#ab28499936c0764fe5b56b9f4de701e26">Eigen::SVDBase::solve</a></div><div class="ttdeci">const Solve&lt; Derived, Rhs &gt; solve(const MatrixBase&lt; Rhs &gt; &amp;b) const</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_abed06fc6f4b743e1f76a7b317539da87"><div class="ttname"><a href="classEigen_1_1SVDBase.html#abed06fc6f4b743e1f76a7b317539da87">Eigen::SVDBase::SVDBase</a></div><div class="ttdeci">SVDBase()</div><div class="ttdoc">Default Constructor.</div><div class="ttdef"><b>Definition:</b> SVDBase.h:358</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_afc7fe1546b0f6e1801b86f22f5664cb8"><div class="ttname"><a href="classEigen_1_1SVDBase.html#afc7fe1546b0f6e1801b86f22f5664cb8">Eigen::SVDBase::matrixU</a></div><div class="ttdeci">const MatrixUType &amp; matrixU() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:175</div></div>
<div class="ttc" id="aclassEigen_1_1SVDBase_html_afe8a555f38393a319a71ec0f0331c9ef"><div class="ttname"><a href="classEigen_1_1SVDBase.html#afe8a555f38393a319a71ec0f0331c9ef">Eigen::SVDBase::nonzeroSingularValues</a></div><div class="ttdeci">Index nonzeroSingularValues() const</div><div class="ttdef"><b>Definition:</b> SVDBase.h:210</div></div>
<div class="ttc" id="aclassEigen_1_1SolverBase_html"><div class="ttname"><a href="classEigen_1_1SolverBase.html">Eigen::SolverBase</a></div><div class="ttdoc">A base class for matrix decomposition and solvers.</div><div class="ttdef"><b>Definition:</b> SolverBase.h:71</div></div>
<div class="ttc" id="agroup__enums_html_ga85fad7b87587764e5cf6b513a9e0ee5e"><div class="ttname"><a href="group__enums.html#ga85fad7b87587764e5cf6b513a9e0ee5e">Eigen::ComputationInfo</a></div><div class="ttdeci">ComputationInfo</div><div class="ttdef"><b>Definition:</b> Constants.h:442</div></div>
<div class="ttc" id="agroup__enums_html_gga46eba0d5c621f590b8cf1b53af31d56ea2e95bc818f975b19def01e93d240dece"><div class="ttname"><a href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56ea2e95bc818f975b19def01e93d240dece">Eigen::NoQRPreconditioner</a></div><div class="ttdeci">@ NoQRPreconditioner</div><div class="ttdef"><b>Definition:</b> Constants.h:429</div></div>
<div class="ttc" id="agroup__enums_html_gga46eba0d5c621f590b8cf1b53af31d56ea9c660eb3336bf8c77ce9d081ca07cbdd"><div class="ttname"><a href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56ea9c660eb3336bf8c77ce9d081ca07cbdd">Eigen::HouseholderQRPreconditioner</a></div><div class="ttdeci">@ HouseholderQRPreconditioner</div><div class="ttdef"><b>Definition:</b> Constants.h:431</div></div>
<div class="ttc" id="agroup__enums_html_gga46eba0d5c621f590b8cf1b53af31d56eabd2e2f4875c5b4b6e602a433d90c4e5e"><div class="ttname"><a href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56eabd2e2f4875c5b4b6e602a433d90c4e5e">Eigen::ColPivHouseholderQRPreconditioner</a></div><div class="ttdeci">@ ColPivHouseholderQRPreconditioner</div><div class="ttdef"><b>Definition:</b> Constants.h:427</div></div>
<div class="ttc" id="agroup__enums_html_gga46eba0d5c621f590b8cf1b53af31d56eabd745dcaff7019c5f918c68809e5ea50"><div class="ttname"><a href="group__enums.html#gga46eba0d5c621f590b8cf1b53af31d56eabd745dcaff7019c5f918c68809e5ea50">Eigen::FullPivHouseholderQRPreconditioner</a></div><div class="ttdeci">@ FullPivHouseholderQRPreconditioner</div><div class="ttdef"><b>Definition:</b> Constants.h:433</div></div>
<div class="ttc" id="agroup__enums_html_gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf"><div class="ttname"><a href="group__enums.html#gga85fad7b87587764e5cf6b513a9e0ee5ea671a2aeb0f527802806a441d58a80fcf">Eigen::Success</a></div><div class="ttdeci">@ Success</div><div class="ttdef"><b>Definition:</b> Constants.h:444</div></div>
<div class="ttc" id="agroup__enums_html_ggae3e239fb70022eb8747994cf5d68b4a9a36581f7c662f7def31efd500c284f930"><div class="ttname"><a href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a36581f7c662f7def31efd500c284f930">Eigen::ComputeFullV</a></div><div class="ttdeci">@ ComputeFullV</div><div class="ttdef"><b>Definition:</b> Constants.h:399</div></div>
<div class="ttc" id="agroup__enums_html_ggae3e239fb70022eb8747994cf5d68b4a9a540036417bfecf2e791a70948c227f47"><div class="ttname"><a href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a540036417bfecf2e791a70948c227f47">Eigen::ComputeThinV</a></div><div class="ttdeci">@ ComputeThinV</div><div class="ttdef"><b>Definition:</b> Constants.h:401</div></div>
<div class="ttc" id="agroup__enums_html_ggae3e239fb70022eb8747994cf5d68b4a9a9fa9302d510cee20c26311154937e23f"><div class="ttname"><a href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9a9fa9302d510cee20c26311154937e23f">Eigen::ComputeFullU</a></div><div class="ttdeci">@ ComputeFullU</div><div class="ttdef"><b>Definition:</b> Constants.h:395</div></div>
<div class="ttc" id="agroup__enums_html_ggae3e239fb70022eb8747994cf5d68b4a9aa7fb4e98834788d0b1b0f2b8467d2527"><div class="ttname"><a href="group__enums.html#ggae3e239fb70022eb8747994cf5d68b4a9aa7fb4e98834788d0b1b0f2b8467d2527">Eigen::ComputeThinU</a></div><div class="ttdeci">@ ComputeThinU</div><div class="ttdef"><b>Definition:</b> Constants.h:397</div></div>
<div class="ttc" id="anamespaceEigen_html"><div class="ttname"><a href="namespaceEigen.html">Eigen</a></div><div class="ttdoc">Namespace containing all symbols from the Eigen library.</div><div class="ttdef"><b>Definition:</b> Core:139</div></div>
<div class="ttc" id="anamespaceEigen_html_a62e77e0933482dafde8fe197d9a2cfde"><div class="ttname"><a href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Eigen::Index</a></div><div class="ttdeci">EIGEN_DEFAULT_DENSE_INDEX_TYPE Index</div><div class="ttdoc">The Index type as used for the API.</div><div class="ttdef"><b>Definition:</b> Meta.h:59</div></div>
<div class="ttc" id="anamespaceEigen_html_ad81fa7195215a0ce30017dfac309f0b2"><div class="ttname"><a href="namespaceEigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a></div><div class="ttdeci">const int Dynamic</div><div class="ttdef"><b>Definition:</b> Constants.h:24</div></div>
<div class="ttc" id="astructEigen_1_1EigenBase_html_a554f30542cc2316add4b1ea0a492ff02"><div class="ttname"><a href="structEigen_1_1EigenBase.html#a554f30542cc2316add4b1ea0a492ff02">Eigen::EigenBase::Index</a></div><div class="ttdeci">Eigen::Index Index</div><div class="ttdoc">The interface type of indices.</div><div class="ttdef"><b>Definition:</b> EigenBase.h:41</div></div>
<div class="ttc" id="astructEigen_1_1NumTraits_html"><div class="ttname"><a href="structEigen_1_1NumTraits.html">Eigen::NumTraits</a></div><div class="ttdoc">Holds information about the various numeric (i.e. scalar) types allowed by Eigen.</div><div class="ttdef"><b>Definition:</b> NumTraits.h:231</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_a62d91f57b5fefafb116d3f5c1ce792a.html">Eigen</a></li><li class="navelem"><a class="el" href="dir_f84311377820247c2dbcf5d6a63ab308.html">src</a></li><li class="navelem"><a class="el" href="dir_f6b0626cbccc4f8f73bf27128a7d2bd4.html">SVD</a></li><li class="navelem"><b>SVDBase.h</b></li>
    <li class="footer">Generated on Thu Apr 21 2022 13:07:54 for Eigen by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
